from tkinter import *
window=Tk()
window.title('ИТ марафон')
window.geometry('500x500')
canvas=Canvas(bg = 'white', width=500, height=500)
canvas.pack(anchor=CENTER,expand = 1)
canvas.create_polygon ([0,0,
                        10,0,
                        10,10,
                        0,20,
                        10,20,
                        20,10,
                        20,20,
                        20,30,
                        20,30],fill='red')
canvas.create_rectangle (0,0,10,10,fill='red',outline='red')
canvas.create_rectangle (0,10,10,20,fill='red',outline='red')
canvas.create_rectangle (10,10,20,20,fill='red',outline='red')
canvas.create_rectangle (10,20,20,30,fill='red',outline='red')
window.mainloop()

